# /usr/bin/env python3.6
# -*- encoding: utf-8 -*-
"""
@File    : file.py
@Time    : 2020/2/2 0002 20:01
@Author  : zhangbing
@Email   : 18829172841@163.com
@Software: PyCharm
"""
from flask import Blueprint, request, render_template

fileedit = Blueprint("fileedit", __name__)


@fileedit.route('/upload/', methods=["GET", "POST"])
def upload():
    if request.method == "GET":
        return render_template('file/upload_file.html')
    elif request.method == "POST":
        print(request.files)

        return "文件上传"


if __name__ == "__main__":
    pass
